//
// Created by harrybao on 2019/4/4.
//

#ifndef CMAKE_LIST_NODE_H
#define CMAKE_LIST_NODE_H

class ListNode
{
public:
    ListNode* prev{ nullptr };
    ListNode* next{ nullptr };
    ListNode()
    {
        prev = next = this;
    }
    ~ListNode() = default;
public:
    bool IsFree()
    {
        return prev == next && prev == this;
    }
};

#endif //CMAKE_LIST_NODE_H
